<script lang="ts">
import { defineComponent } from 'vue'
// import router from '@/router';
import 'vant/es/toast/style'
import bottomBar from './components/bottomBar.vue';
export default defineComponent({
    components: {
        bottomBar
    },
    setup() {
        return {

        }
    }
})
</script>

<template>
    <router-view v-slot="{ Component, route }">
        <component :is="Component" v-if="route.name !== 'home'" />
        <keep-alive>
            <component :is="Component" v-if="route.name == 'home'" />
        </keep-alive>
    </router-view>

    <bottom-bar v-show="!$route.meta.isBottomBar"></bottom-bar>
</template>

<style lang="scss" scoped></style>
